


#include "drv_xtp2046_interface.h"


/**
 * @brief check spi enabled or  not
 * 
 */
void xpt2046_interface_spi_init(void)
{



}

/**
 * @brief reset and release SPI for others
 * 
 */
void xpt2046_interface_spi_deinit(void)
{


}
/**
 * @brief start transmit and receive data
 * 
 * @param txdata 
 * @param rxdata if null do not receive
 * @param len    transmit and receive length is same
 */
void xpt2046_interface_spi_transmit(uint8_t *txdata,uint8_t *rxdata ,uint16_t len)
{
    if(rxdata != NULL)
    {
        
    }


}

/**
 * @brief init gpio for cs pin 
 * 
 */
void xpt2046_interface_gpio_init(void)
{



}

void xpt2046_interface_gpio_cs_write(uint8_t level)
{



}
/**
 * @brief get pin level of penirq pin
 * 
 * @return uint8_t 
 */
uint8_t xpt2046_interface_gpio_penirq_read(void)
{



}

/**
 * @brief init pin exti mode and enable exti
 * 
 */
void xpt2046_interface_exit_penirq_init(void)
{


}

/**
 * @brief enable or disable penirq exti
 * 
 * @param enable 
 */
void xpt2046_interface_exit_penirq_cmd(uint8_t enable)
{



}

/**
 * @brief execute penirq exti irq server
 * 
 * @param cmd 
 */
void xpt2046_interface_penirq_callback(uint8_t cmd)
{



}